package com.study.hospital_3.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * (Doctor)实体类
 *
 * @author Drifter
 * @since 2025-01-18 23:23:51
 */
public class Doctor implements Serializable {
    private Integer id;
    private String doctorName;
    private Department department;  // Department 类型的属性


    public Doctor() {
    }

    public Doctor(Integer id, String doctorName, Department department) {
        this.id = id;
        this.doctorName = doctorName;
        this.department = department;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return doctorName
     */
    public String getDoctorName() {
        return doctorName;
    }

    /**
     * 设置
     * @param doctorName
     */
    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    /**
     * 获取
     * @return department
     */
    public Department getDepartment() {
        return department;
    }

    /**
     * 设置
     * @param department
     */
    public void setDepartment(Department department) {
        this.department = department;
    }

    public String toString() {
        return "Doctor{id = " + id + ", doctorName = " + doctorName + ", department = " + department + "}";
    }
}


